package com.czy.ekp;

import cn.hutool.core.io.resource.ResourceUtil;
import com.czy.ekp.datasource.DynamicDataSourceRegister;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Import;

@Import(DynamicDataSourceRegister.class)
@SpringBootApplication
public class EkpApplication {

    public static void main(String[] args) {
        if(args.length!=0){
            System.setProperty("spring.profiles.active", args[0]);
        }
        ConfigurableApplicationContext applicationContext = SpringApplication.run(EkpApplication.class);
    }

}
